package com.example.zm_fanjiantao.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration //标识这是配置类
public class WebchatConfig {
     @Bean
     @ConfigurationProperties("wechat")
     public Wechat wechat(){
         return new Wechat();
     }
}
